package com.ge.modules.api.service.impl;

import  com.ge.modules.api.service.TbPostCommentService;
import com.ge.modules.dao.TbPostCommentDao;
import com.ge.modules.entity.TbPostCommentEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbPostCommentServiceImpl implements TbPostCommentService {
	@Autowired
	private TbPostCommentDao postCommentDao;
	
	@Override
	public TbPostCommentEntity queryObject(Integer id){
		return postCommentDao.queryObject(id);
	}
	
	@Override
	public List<TbPostCommentEntity> queryList(Map<String, Object> map){
		return postCommentDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return postCommentDao.queryTotal(map);
	}
	
	@Override
	public void save(TbPostCommentEntity postComment){
		postCommentDao.save(postComment);
	}
	
	@Override
	public void update(TbPostCommentEntity postComment){
		postCommentDao.update(postComment);
	}
	
	@Override
	public void delete(Integer id){
		postCommentDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		postCommentDao.deleteBatch(ids);
	}
	
}
